﻿@using Orchard.ContentManagement;
@using Orchard.Widgets;
@if (AuthorizedFor(Permissions.ManageWidgets)) {
    <div class="widget-control">
        <div>
            @Display(Model.Child)    
        </div>
        <ul class="manage-actions breadcrumb">
            @*<li class="active">Actions</li>
            <li class="divider">|</li>*@
            <li>@Html.ItemEditLinkWithReturnUrl(T("Edit").Text, (ContentItem)Model.ContentItem)</li>
        </ul>
    </div>
}
else {
    @Display(Model.Child)
}